|
|
 |
|
|
|
|
' Realize the new palette values. RealizePalette picVisible.hdc
' Select the color that was selected before. SelectColor SelectedI, SelectedJ
End Sub |
|
|
|
|
|
|
|
|
Color palettes served an important purpose when memory was expensive and programmers were cheap. Now, when many desktop computers have 32MB or more of memory, the small memory savings palettes provide is not worth the extra confusion. |
|
|
|
|
|
|
|
|
Support for palettes also seems to be slipping. With each release of Visual Basic, performing simple tasks with palettes becomes easier while performing more interesting tasks becomes harder. With so many other graphics programming topics to pursue, palettes are a headache you can live without. Buy a little extra memory and use 24-bit color. Then move on to more interesting topics such as fractals and ray tracing. |
|
|
|
|
|